package com.cars.phoenix.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName: Student
 * @Description: 学生实体类
 * @author: caoqianfan
 * @date: 2023/9/15 14:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("\"hello_phoenix\".\"student\"")
public class Student {
    //标注id
    @TableId(type = IdType.INPUT, value = "\"id\"")
    private Integer id;
    @TableField("\"name\"")
    private String name;
    @TableField("\"age\"")
    private Integer age;
    @JSONField(format = "yyyy-MM-dd")
    @TableField("\"birthday\"")
    private Date birthday;
    @TableField("\"money\"")
    private Double money;
}